def Martin_strategy(X1, Z1, Z2, y1, y2):
    return (X1*(1+Z1) - X1/y1*y2*(1+Z1))/(Z1-Z2)

print(Martin_strategy(1020, 0.03, 0.01, 1.0274, 1.0206*(1-5.77*0.01)))